package com.lt.contract.dao;

import com.lt.contract.bean.NMContractNew;
import com.lt.contract.bean.NM_RENEW_CONTRACT;
import com.lt.contract.entity.NmMobileService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface NMContractNewMapper {
    int insertSelective(NMContractNew record);

    int updateByPrimaryKeySelective(NMContractNew record);

    NMContractNew selectByPrimaryKey(String id);

    List<NMContractNew> queryNewContractList(Map<String, Object> map) throws Exception;

    Long getNewContractListCount(Map<String, Object> map) throws Exception;

    int deleteByPrimaryKey(NMContractNew record);

    Long getSerialNumberCount(NMContractNew record);

    NMContractNew getUpdateSerialNumber(NMContractNew record);

    List<Map<String,Object>> queryRepetition(@Param("list") List<String> list) ;
    List<Map<String,Object>> queryContractNumber(@Param("list") List<String> list) ;

    int insertAll(List<NMContractNew> list);
}
